<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="../WEB-INF/facelets/layout.xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.prime.com.tr/ui">
    <ui:param name="title" value="camelBlog"/>
    <ui:param name="headerTitle" value="camelBlog"/>
    <h:outputStylesheet library="css" name="cssLayout.css" />
    <ui:define name="content">
        <h:form>
            <h:outputText value="Title:"/>
            <br/>
            <p:inputText title="Title"  value="#{addPostBackingBean.title}"/>  
            <br/>
            <h:outputText value="Content:"/>
            <br/>
            <p:inputTextarea  title="Content" style="width:99%;height:100px;" 
                              effectDuration="400"   value="#{addPostBackingBean.content}" /> 
            <h:commandButton actionListener="#{addPostControllerBean.doCreatePost}" value="Submit" />
            
            <h:button value="Reset" outcome="onReset"   />
        </h:form>
    </ui:define>
</ui:composition>

